import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import storeCallback from './store';
import './assets/styles/app.scss';

const { store, persistor } = storeCallback();

export default class App extends Component {
    render() {
        return (
            <Provider store={store}>
                <PersistGate persistor={persistor}>{this.props.children}</PersistGate>
            </Provider>
        );
    }
}
